        {include file='header.html'}
        <link type="text/css" href="../../page/css/reset.css" rev="stylesheet" rel="stylesheet">
        <link type="text/css" href="../../page/css/kaoqin.css" rev="stylesheet" rel="stylesheet">

            <div id="content">
                <i class="con_l">&nbsp;</i>
                <i class="con_r">&nbsp;</i>
                <div class="main">
                    <!--我的年假begin-->
                    <div class="blank"></div>
                    <div class="div_date">
                        <i class="i_l">&nbsp;</i>
                        <span class="sp_c">员工：{$the_user_info.name}[{$the_user_info.code}]&nbsp;{$nowtime}考勤明细</span>
                        <i class="i_r">&nbsp;</i>
                        <div class="clear"></div>
                    </div>
                    <br/>
                    <table class="p p3_day" cellpadding="0" cellspacing="0" border="0">
                        <tr class="fir">
                            <td class="i0">日期</td>
                            <td class="i0">上班时间</td>
                            <td class="i0">考勤状态</td>
                            {if $is_self_see }<td class="i0">工时</td>{/if}
                            {if $userdata}<td class="i0">加班工时</td>{/if}
                            <td class="i0">备注</td>
                        </tr>
                        {foreach from=$result key=theday item=v}
                        <tr>
                            <td class="i0" {if $v.week eq '六' or $v.week eq '日'} style="color:#0c7fd4;"{/if}>{$v.view_date}</td>
                            <td class="i0">{if $v.view_work eq '正常'}{$v.kq_detail}{elseif $v.view_work}{$v.view_work}{else}&nbsp;{/if} </td>
                            <td class="i0">
                            {if $v.view_record neq null}
                                {if $v.view_work eq '正常' || $v.view_record eq '周末加班辛苦了' || $v.view_record eq '无考勤数据'|| $v.view_record eq '法定节假日'}
                                    {if $v.view_record eq '周末加班辛苦了'}&nbsp;{else}{$v.view_record}{/if}
                                {else}
                                    {if $v.view_record=='<span class="img1">&nbsp;</span>'}
                                         <span class="img1">&nbsp;</span>
                                    {else}

                                        {foreach from=$v.view_record key=ty item=st}
                                        {$st.type}
                                        {if $st.leave_id}
                                            {if $st.type!=$st.leave_reason}({$st.leave_reason}){/if}({$st.leave_status})
                                        {else}
                                            {$st.html_url}
                                        {/if}
                                        {$st.upload_prove}
                                        <br/>
                                        {/foreach}
                                {/if}
                                {/if}

                            {else}
                            &nbsp;
                            {/if}
                            </td>
                            {if $is_self_see }<td class="i0">{$v.worktime}&nbsp;</td>{/if}
                            {if $userdata}<td class="i0">&nbsp;{$v.workendtime}</td>{/if}
                            <td class="i0">
                            {if $v.view_detail neq null}
                                {foreach from=$v.view_detail key=rsn item=rs}
                                    {if $rs}
                                        类别:{$rs.type}&nbsp;&nbsp;
                                        原因:{$rs.leave_desc}
                                        <br>
                                    {/if}
                                {/foreach}
                            {else}
                                &nbsp;
                            {/if}
                            </td>
                        </tr>
                        {/foreach}
                    </table>
                </div>
            </div>
        </div>

    </body>
</html>
